# import function_demo

# function_demo.clock_in('2020-10-17 10：46：00','王五')
# def printinfo( name, age ,gender='男'):
#     print ("名字: ", name)
#
#     print ("年龄: ", age)
#
#     print('性别：',gender)
#     return
#
# printinfo('张三',22)
# printinfo('lili',18,'女')

#求和的函数 ，要求我传几个数你给我算几个数的和

def sum1(*args,name):
    #相当于用*定义了一个a的元组，然后把实参，放到元组中了
    # print(a)
    # print(*a)
    result = 0
    for i in args:
        print(i)
    #     result += i
    # print(f'{name}做的计算结果',result)

# sum1(12,13)
# sum1(12,13,14,15)
# lis1 = [i for i in range(1,101)]
# print(*lis1)
sum1(11,22,33,44,55,66,77,name='zhangsan')



